<template>
    <div class="module">
        <p v-if="subjectList != null && subjectList.length >= 1" class="subject-type">选择题</p>
        <MultipleChoiceSubject v-for="(element,index) in subjectList"
                               :key="index"
                               :in-subject="element"
                               :code="index"
        ></MultipleChoiceSubject>
    </div>
</template>

<script>
import MultipleChoiceSubject from "@c/MultipleChoiceSubject";

export default {
    name: "MultipleChoiceModule",
    components: { MultipleChoiceSubject },
    
    created() {
        console.log("多选题目::", this.subjectList);
        // window.addEventListener("storage", this.initComponent,false);
    },
    beforeDestroy() {
        // window.removeEventListener("storage", this.initComponent,false);
    },
    props: ["subjectList"],
    
    data() {
        return {
            // subjectList:[]
            isSubject: false
        };
    }
};
</script>

<style scoped lang="scss">

</style>